3.4 \(\int \frac{(a+b x) (a c-b c x)^3}{x} \, dx\)

Optimal. Leaf size=47 \[ a^4 c^3 \log (x)-2 a^3 b c^3 x+\frac{2}{3} a b^3 c^3 x^3-\frac{1}{4} b^4 c^3 x^4 \]

[Out]

-2*a^3*b*c^3*x + (2*a*b^3*c^3*x^3)/3 - (b^4*c^3*x^4)/4 + a^4*c^3*Log[x]

_______________________________________________________________________________________

Rubi [A]  time = 0.0480749, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ a^4 c^3 \log (x)-2 a^3 b c^3 x+\frac{2}{3} a b^3 c^3 x^3-\frac{1}{4} b^4 c^3 x^4 \]

Antiderivative was successfully verified.

[In]  Int[((a + b*x)*(a*c - b*c*x)^3)/x,x]

[Out]

-2*a^3*b*c^3*x + (2*a*b^3*c^3*x^3)/3 - (b^4*c^3*x^4)/4 + a^4*c^3*Log[x]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 18.1017, size = 48, normalized size = 1.02 \[ a^{4} c^{3} \log{\left (x \right )} - 2 a^{3} b c^{3} x + \frac{2 a b^{3} c^{3} x^{3}}{3} - \frac{b^{4} c^{3} x^{4}}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((b*x+a)*(-b*c*x+a*c)**3/x,x)

[Out]

a**4*c**3*log(x) - 2*a**3*b*c**3*x + 2*a*b**3*c**3*x**3/3 - b**4*c**3*x**4/4

_______________________________________________________________________________________

Mathematica [A]  time = 0.0214984, size = 48, normalized size = 1.02 \[ c^3 \left (a^4 \log (-b x)+\frac{1}{12} \left (19 a^4-24 a^3 b x+8 a b^3 x^3-3 b^4 x^4\right )\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[((a + b*x)*(a*c - b*c*x)^3)/x,x]

[Out]

c^3*((19*a^4 - 24*a^3*b*x + 8*a*b^3*x^3 - 3*b^4*x^4)/12 + a^4*Log[-(b*x)])

_______________________________________________________________________________________

Maple [A]  time = 0.005, size = 44, normalized size = 0.9 \[ -2\,{a}^{3}b{c}^{3}x+{\frac{2\,a{b}^{3}{c}^{3}{x}^{3}}{3}}-{\frac{{b}^{4}{c}^{3}{x}^{4}}{4}}+{a}^{4}{c}^{3}\ln \left ( x \right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((b*x+a)*(-b*c*x+a*c)^3/x,x)

[Out]

-2*a^3*b*c^3*x+2/3*a*b^3*c^3*x^3-1/4*b^4*c^3*x^4+a^4*c^3*ln(x)

_______________________________________________________________________________________

Maxima [A]  time = 1.34506, size = 58, normalized size = 1.23 \[ -\frac{1}{4} \, b^{4} c^{3} x^{4} + \frac{2}{3} \, a b^{3} c^{3} x^{3} - 2 \, a^{3} b c^{3} x + a^{4} c^{3} \log \left (x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-(b*c*x - a*c)^3*(b*x + a)/x,x, algorithm="maxima")

[Out]

-1/4*b^4*c^3*x^4 + 2/3*a*b^3*c^3*x^3 - 2*a^3*b*c^3*x + a^4*c^3*log(x)

_______________________________________________________________________________________

Fricas [A]  time = 0.201208, size = 58, normalized size = 1.23 \[ -\frac{1}{4} \, b^{4} c^{3} x^{4} + \frac{2}{3} \, a b^{3} c^{3} x^{3} - 2 \, a^{3} b c^{3} x + a^{4} c^{3} \log \left (x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-(b*c*x - a*c)^3*(b*x + a)/x,x, algorithm="fricas")

[Out]

-1/4*b^4*c^3*x^4 + 2/3*a*b^3*c^3*x^3 - 2*a^3*b*c^3*x + a^4*c^3*log(x)

_______________________________________________________________________________________

Sympy [A]  time = 0.584198, size = 48, normalized size = 1.02 \[ a^{4} c^{3} \log{\left (x \right )} - 2 a^{3} b c^{3} x + \frac{2 a b^{3} c^{3} x^{3}}{3} - \frac{b^{4} c^{3} x^{4}}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x+a)*(-b*c*x+a*c)**3/x,x)

[Out]

a**4*c**3*log(x) - 2*a**3*b*c**3*x + 2*a*b**3*c**3*x**3/3 - b**4*c**3*x**4/4

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.234265, size = 59, normalized size = 1.26 \[ -\frac{1}{4} \, b^{4} c^{3} x^{4} + \frac{2}{3} \, a b^{3} c^{3} x^{3} - 2 \, a^{3} b c^{3} x + a^{4} c^{3}{\rm ln}\left ({\left | x \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-(b*c*x - a*c)^3*(b*x + a)/x,x, algorithm="giac")

[Out]

-1/4*b^4*c^3*x^4 + 2/3*a*b^3*c^3*x^3 - 2*a^3*b*c^3*x + a^4*c^3*ln(abs(x))